-- GENERATED SPELL FOR [Cliff Thunderer] --


function spell0_6147(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8147,pUnit)
pUnit:RegisterEvent('Sorts_6147', 10294, 1)
end

function Sorts_6147(pUnit, Event)
local choix_sorts_6147 = math.random(0, 0)
if choix_sorts_6147 == 0 then
pUnit:RegisterEvent('spell0_6147', 1, 1)
end
end

function mob6147_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6147', math.random(1500, 3000), 1)
end

function mob6147_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6147_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6147_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6147, 1, 'mob6147_Action')
RegisterUnitEvent(6147, 2, 'mob6147_Leave')
RegisterUnitEvent(6147, 3, 'mob6147_Kill')
RegisterUnitEvent(6147, 4, 'mob6147_Die')
